package com.ly.iot.config;

import com.ly.iot.service.AlIotService;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

@Configuration
//启动Amqp服务接收阿里云物联网平台的的数据
public class AmqpConfig {

    @Resource
    private AlIotService alIotService;

    @PostConstruct
    public void start() throws Exception {
        alIotService.startAmqpService();
    }
}
